import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
   {
    title: 'Period',
    align:"center",
    dataIndex: 'version'
   },
   {
    title: 'Division',
    align:"center",
    dataIndex: 'division'
   },
   {
    title: 'Detailed Division',
    align:"center",
    dataIndex: 'detailedDivision'
   },
   {
    title: 'Product',
    align:"center",
    dataIndex: 'product'
   },
   {
    title: 'Wave',
    align:"center",
    dataIndex: 'wave'
   },
   {
    title: 'Campaign Name',
    align:"center",
    dataIndex: 'campaignName'
   },
   {
    title: 'Buying Type',
    align:"center",
    dataIndex: 'buyingType'
   },
   {
    title: 'MediaType',
    align:"center",
    dataIndex: 'mediaType'
   },
   {
    title: 'Media',
    align:"center",
    dataIndex: 'media'
   },
   {
    title: 'MediaGroup',
    align:"center",
    dataIndex: 'mediaGroup'
   },
   {
    title: 'Market Region',
    align:"center",
    dataIndex: 'marketRegion'
   },
   {
    title: '定向OMG',
    align:"center",
    dataIndex: 'forOmg'
   },
   {
    title: 'Technical Cost',
    align:"center",
    dataIndex: 'techCost'
   },
   {
    title: 'Media Spending',
    align:"center",
    dataIndex: 'mediaSpending'
   },
   {
    title: 'AC',
    align:"center",
    dataIndex: 'ac'
   },
   {
    title: 'revision',
    align:"center",
    dataIndex: 'revision'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: 'Period',
    field: 'version',
    component: 'Input',
  },
  {
    label: 'Division',
    field: 'division',
    component: 'Input',
  },
  {
    label: 'Detailed Division',
    field: 'detailedDivision',
    component: 'Input',
  },
  {
    label: 'Product',
    field: 'product',
    component: 'Input',
  },
  {
    label: 'Wave',
    field: 'wave',
    component: 'Input',
  },
  {
    label: 'Campaign Name',
    field: 'campaignName',
    component: 'Input',
  },
  {
    label: 'Buying Type',
    field: 'buyingType',
    component: 'Input',
  },
  {
    label: 'MediaType',
    field: 'mediaType',
    component: 'Input',
  },
  {
    label: 'Media',
    field: 'media',
    component: 'Input',
  },
  {
    label: 'MediaGroup',
    field: 'mediaGroup',
    component: 'Input',
  },
  {
    label: 'Market Region',
    field: 'marketRegion',
    component: 'Input',
  },
  {
    label: '定向OMG',
    field: 'forOmg',
    component: 'Input',
  },
  {
    label: 'Technical Cost',
    field: 'techCost',
    component: 'Input',
  },
  {
    label: 'Media Spending',
    field: 'mediaSpending',
    component: 'Input',
  },
  {
    label: 'AC',
    field: 'ac',
    component: 'InputNumber',
  },
  {
    label: 'revision',
    field: 'revision',
    component: 'InputNumber',
  },
	// TODO 主键隐藏字段，目前写死为ID
	{
	  label: '',
	  field: 'id',
	  component: 'Input',
	  show: false
	},
];
